package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class ReturnsClause {

    private int beginIndex;
    private int endIndex;
    private ReturnsType returnsType;

    public ReturnsClause(int beginIndex, ReturnsType returnsType) {
        this.beginIndex = beginIndex;
        this.endIndex = returnsType.getEndIndex();
        this.returnsType = returnsType;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public ReturnsType getReturnsType() {
        return returnsType;
    }

}
